package group.nft.utils;

public class MD5Util {
	/**
	 * 根据原始字符串生成md5加密后的字符串
	 * 
	 * @param str
	 * @return
	 */
	public static String getMD5(String str) {
		MD5 md5 = new MD5();
		return md5.getMD5ofStr(str);
	}

	public static void main(String[] args) {
		String pwd = "111111";
		String md5 = getMD5(pwd);
		System.out.println(md5);
		System.out.println("5fec4ba8376f207d1ff2f0cac0882b01".equals(md5));
		System.out.println(getMD5(""));
	}
}
